plugor.fixed = {
	event:function(e){
		//取得当前window对象的事件
		e = e || window.event;
		
		// Fix target property, if necessary
		if ( !e.target )
			e.target = e.srcElement || document; // Fixes #1925 where srcElement might not be defined either
	
		// check if target is a textnode (safari)
		if ( e.target.nodeType == 3 )
			e.target = e.target.parentNode;
	
		// Add relatedTarget, if necessary
		if ( !e.relatedTarget && e.fromElement )
			e.relatedTarget = e.fromElement == e.target ? e.toElement : e.fromElement;
	
		// Calculate pageX/Y if missing and clientX/Y available
		if ( e.pageX == null && e.clientX != null ) {
			var doc = document.documentElement, body = document.body;
			e.pageX = e.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
			e.pageY = e.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
		}
	
		// Add which for key events
		if ( !e.which && ((e.charCode || e.charCode === 0) ? e.charCode : e.keyCode) )
			e.which = e.charCode || e.keyCode;
	
		// Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
		if ( !e.metaKey && e.ctrlKey )
			e.metaKey = e.ctrlKey;
	
		// Add which for click: 1 == left; 2 == middle; 3 == right
		// Note: button is not normalized, so don't use it
		if ( !e.which && e.button )
			e.which = (e.button & 1 ? 1 : ( e.button & 2 ? 3 : ( e.button & 4 ? 2 : 0 ) ));
	
		return e;
	}
};